import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworks
 * Date: 8/25/13
 * Time: 1:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class Game {
    PrintStream printStream;
    BufferedReader bufferedReader;

    Score score;

    public Game(PrintStream printStream, BufferedReader bufferedReader) {
        this.printStream = printStream;
        this.bufferedReader = bufferedReader;
        score = new Score(printStream, bufferedReader);
    }




    public void run() throws IOException {
        printStream.println("New game started");
        printStream.println(score.getScore());
        promptForScorer();
        score.increaseScore(readInScorer());
    }

    public static void main(String[] args) throws IOException {
        Game game = new Game(System.out, new BufferedReader(new InputStreamReader(System.in)));
        game.run();

    }

    public void promptForScorer() {
        printStream.println("Enter the number of the player who scored:");
    }

    public String readInScorer() throws IOException {
        return bufferedReader.readLine();
    }
}
